package com.antler.smt.admin.mapper;

import com.antler.smt.entity.PeopleInfoEntity;
import com.antler.smt.request.admin.PeopleReq;
import com.antler.smt.response.admin.GetPeopleInfoResp;
import com.github.pagehelper.Page;
import org.springframework.stereotype.Repository;

@Repository
public interface PeopleInfoMapper {

    /**
     * 返回用户认证信息列表
     *
     * @return
     */
    Page<PeopleInfoEntity> selectAllPeopleList();

    /**
     * 获取当前专员下的用户信息
     *
     * @param userId
     * @return
     */
    Page<PeopleInfoEntity> selectPeopleListByUserId(Long userId);


    /**
     * 分类查询用户信息
     *
     * @param req
     * @return
     */
    Page<GetPeopleInfoResp> searchPeople(PeopleReq req);
}